﻿@{
    Layout = null;
  
}       
@*导码管理*@ 
<style>
    a {
        color:#b0adad;
    }
</style>
<script src="~/Scripts/MGJJS/CodeManage/LeadCode.js"></script>
<script>
    function showPanel(obj) {
        $(obj).parent().parent().nextAll('.panel-collapse').toggle();
    }
</script>
<div class="mtlr15">
    <div class="row">
        <div class="col-lg-8 col-md-8 col-sm-8" style="padding:0">
           
            <button type="button" class="btn btn-success" onclick="$.MGJ.LeadCode.Ajax_GetViewFlags(1)">
                <i class="glyphicon glyphicon-plus-sign"></i>
                启用
            </button>
            <button type="button" class="btn btn-success" onclick="$.MGJ.LeadCode.Ajax_GetViewFlags(0)">
                <i class="glyphicon glyphicon-remove"></i>
                禁用
            </button>
        </div>

        <div class="col-lg-4 col-md-4 col-sm-4">
            <div class="input-group">
                <input type="text" class="form-control" placeholder="生码批次" id="Lsearch" onkeydown="if (event.keyCode == 13) { $.MGJ.LeadCode.Ajax_LeadCodePageList(1); }">
                <span class="input-group-addon" onclick="$.MGJ.LeadCode.Ajax_LeadCodePageList(1);">
                    <span class="glyphicon glyphicon-search"></span>
                </span>
            </div>
        </div>
    </div>


    @*<table class="table table-hover table-bordered" style="text-align:center">
        <thead>
            <tr>
                <th width="15"><input type="checkbox" class="AllClickCheckbox"></th>
                <th style="max-width:100px;">所属机构</th>
                <th>生码批次</th>
                <th>生码数量</th>
                <th>标签图片</th>
                <th>网站查询</th>
                <th>短信查询</th>
                <th>生码状态</th>
                <th>生码类型</th>
                <th>生码时间</th>
                <th>机构代码</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody id="LeadTable" style="display:none;" binding="{'pageId':'LeadcodePager','pageCallback':'$.MGJ.LeadCode.Ajax_LeadCodePageList','emptyHtml':LID_EmptyHtml}">
            <tr>
                <td width="15"><input type="checkbox" name="AllClickChild" class="AllClickChild" binding="{'value':'ID','flag':'ViewFlag'}"></td>
                <td style="max-width:100px;" binding="{'text':'EnterpriseName','title':'EnterpriseName'}"></td>
                <td binding="{'text':'Batch'}"></td>
                <td binding="{'text':'Gen_Code_Nums'}"></td>
                <td binding="{'text':'LabelImage'}"></td>
                <td binding="{'text':'Query_Result_Content'}"></td>
                <td binding="{'text':'Query_Message_Content'}"></td>
                <td class="Status" binding="{'text':'Status','textHandle':$.MGJ.LeadCode.Ajax_IntStatus}"></td>
                <td class="CodeType" binding="{'text':'CodeType','textHandle':$.MGJ.LeadCode.Ajax_handes}"></td>
                <td binding="{'text':'ChangeDate','textHandle':'datetime'}"></td>
                <td binding="{'text':'Code'}"></td>             
                <td>
                    <a class="limitUpd" binding="{'Batch':'Batch','ID':'ID','Code':'Code','EnterpriseName':'EnterpriseName'}" onclick="$.MGJ.LeadCode.Dialog_LeadOut(this)">导码</a>
                    <a class="limitUpd" binding="{'LID':'ID'}" onclick="$.MGJ.LeadCode.Ajax_DelLeadCode(this)">删除</a>
                    <a binding="{'LID':'ID'}" onclick="$.MGJ.LeadCode.Dialog_LeadShowData(this)">详细数据</a>
                </td>
            </tr>
        </tbody>

    </table>*@
    
    <div id="wh100">
        <div class="fixed-table">
            <div id="over">
                <div class="fixed-table-left">
                    <table>
                        <thead>
                            <tr>
                                <th width="15"><input type="checkbox" class="AllClickCheckbox"></th>
                                <th>所属机构</th>
                            </tr>
                        </thead>
                        <tbody id="LeadTable_left" style="display:none;" binding="{'pageId':'LeadcodePager','pageCallback':'$.MGJ.LeadCode.Ajax_LeadCodePageList'}">
                            <tr>
                                <td width="15"><input type="checkbox" name="AllClickChild" class="AllClickChild" binding="{'value':'ID','flag':'ViewFlag'}"></td>
                                <td binding="{'text':'EnterpriseName','title':'EnterpriseName'}"></td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <div class="fixed-table-middle" style="width:100%;">
                    <table style="width:100%;">
                        <thead>
                            <tr>
                                <th class="empty"><input type="checkbox" class="AllClickCheckbox"></th>
                                <th>所属机构</th>
                                <th>生码批次</th>
                                <th>是否启用</th>
                                <th>生码数量</th>
                                <th>标签图片</th>
                                <th>网站查询</th>
                                <th>短信查询</th>
                                <th>生码状态</th>
                                <th>生码类型</th>
                                <th>生码时间</th>
                                <th>机构代码</th>
                                @*<th>操作</th>*@
                            </tr>
                        </thead>
                        <tbody id="LeadTable" style="display:none;" binding="{'pageId':'LeadcodePager','pageCallback':'$.MGJ.LeadCode.Ajax_LeadCodePageList','emptyHtml':LID_EmptyHtml}">
                            <tr>
                                <td><input type="checkbox"></td>
                                <td binding="{'text':'EnterpriseName','title':'EnterpriseName'}"></td>
                                <td binding="{'text':'Batch'}"></td>
                                <td class="ViewFlag" binding="{'text':'ViewFlag','textHandle':$.MGJ.LeadCode.Ajax_ViewFlag}"></td>
                                <td binding="{'text':'Gen_Code_Nums'}"></td>
                                <td binding="{'text':'LabelImage'}"></td>
                                <td binding="{'text':'Query_Result_Content'}"></td>
                                <td binding="{'text':'Query_Message_Content'}"></td>
                                <td class="Status" binding="{'text':'Status','textHandle':$.MGJ.LeadCode.Ajax_IntStatus}"></td>
                                <td class="CodeType" binding="{'text':'CodeType','textHandle':$.MGJ.LeadCode.Ajax_handes}"></td>
                                <td binding="{'text':'ChangeDate','textHandle':'datetime'}"></td>
                                <td binding="{'text':'Code'}"></td>
                                @*<td>
                                    @*<a>导码</a>*@
                                    @*<a>删除</a>
                                </td>*@
                            </tr>
                        </tbody>
                    </table>
                </div>
                <div class="fixed-table-right">
                    <table>
                        <thead>
                            <tr>
                                <th style="padding:6px 15px 7px;">操作</th>
                            </tr>
                        </thead>
                        <tbody id="LeadTable_right" style="display:none;" binding="{'pageId':'LeadcodePager','pageCallback':'$.MGJ.LeadCode.Ajax_LeadCodePageList'}">
                            <tr>
                                <td style="padding:6px 15px 7px;">
                                    @*onclick="$.MGJ.LeadCode.Dialog_LeadOut(this)
            onclick="$.MGJ.LeadCode.Ajax_DelLeadCode(this)*@
                                    <a class="limitUpd" binding="{'Batch':'Batch','ID':'ID','Code':'Code','EnterpriseName':'EnterpriseName'}">导码</a>
                                    <a class="limitUpd" binding="{'LID':'ID'}">删除</a>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            <div id="LeadcodePager"></div>
        </div>
    </div>
</div>

<script>
    var ColspanNub = $(".fixed-table-middle").find("tr").children("td").length
    window.LID_EmptyHtml = '<tr><td colspan="' + ColspanNub + '"><p class="no-result">无符合条件的数据结果</p></td></tr>';

    $(function () {
        $.MGJ.LeadCode.Ajax_LeadCodePageList(1);
    });
</script>



